package org.nci.uRunking.control;

import java.util.List;

import javax.annotation.Resource;

import org.nci.uRunking.model.User;
import org.nci.uRunking.service.IUserService;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import org.marmot.view.DataSet;

@Controller("userController")
@Scope("prototype")
public class UserController {
	@Resource(name="userService")
	private IUserService userService;
	
	public void setUserService(IUserService userService) {
		this.userService = userService;
	}

	public void update(){
		
	}
	
	public void query(DataSet dataset) throws Exception{
		List<User> list = userService.query();
		dataset.addRecords(list);
	}
}
